package com.xh.demo.domain.po;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.xh.demo.config.custom.CustomJsonDateDeserializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Name User
 * @Description
 * @Author wen
 * @Date 2019-07-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_user")
public class User {

    private Long id;

    private String name;

    private Integer sex;

    @Column(name = "create_time")
    @JsonDeserialize(using = CustomJsonDateDeserializer.class)
    private Date createTime;

}
